﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ArtOfTest.WebAii.Controls.HtmlControls;

namespace SM2SetupSearch
{
    public class ManualEntryActions
    {
        public static void ManualEntry_SetTextInto_search_text(string strInput)
        {
            Utilities.GlobalObject.MANAGER.ActiveBrowser.RefreshDomTree();
            HtmlDiv pnlContent = Utilities.GlobalObject.MANAGER.ActiveBrowser.Find.ById<HtmlDiv>("pnlContent");
            HtmlDiv cphPageContent_mSearchWizard = pnlContent.Find.ById<HtmlDiv>("cphPageContent_mSearchWizard");
            HtmlDiv search_wizard_panel = cphPageContent_mSearchWizard.Find.ById<HtmlDiv>("search-wizard-panel");
            HtmlDiv search_setup = search_wizard_panel.Find.ById<HtmlDiv>("search-setup");
            HtmlForm create_search_form = search_setup.Find.ById<HtmlForm>("create-search-form");


            HtmlInputText search_text = create_search_form.Find.ById<HtmlInputText>("search-text");
            SM2Input.Tradition.TypeTextIntoTextFieldWithHint(search_text, strInput);
        }
    }
}
